#{extends 'main.html' /}
#{set title:'Fiche' /}

<div id="bookContainer" class="form">
	<div class="col-50">
		#{if cartoon.collection != null}
	        <p>
	        	<label>Série : </label>
	        	<span>${cartoon.collection.title}</span>
	        </p>
        #{/if}
		<p>
        	<label>Ouvrage : </label>
        	<span>${cartoon.title}</span>
        </p>
        <p>
        	<label>Auteur : </label>
        	<span>${cartoon.writer.name} ${cartoon.writer.firstname}</span>
	    </p>
	    <p>
        	<label>Dessinateur : </label>
        	<span>${cartoon.cartoonist.name} ${cartoon.cartoonist.firstname}</span>
	    </p>
        <p>
        	<label>Année de sortie : </label>
        	<span>${cartoon.publicationdate}</span>
        </p>
	</div>
	<div class="col-50 last">
		#{if covers}
			<p>
			#{list items:covers, as:'cover'}
				<img src="@{'public/images/cover/'}/${cover.path}" />
			#{/list}
			</p>
		#{/if}
	</div>
    
</div>
